<template>
  <el-form inline ref="formRef" :model="formInline" class="form-inline">
    <el-form-item label="电影名称" prop="name">
      <el-input size="mini" v-model="formInline.name" placeholder="电影名称"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button size="mini" type="primary" @click="onSearch">查询数据</el-button>
      <el-button size="mini" type="info" @click="onReset">重置搜索</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  data() {
    return {
      formInline: {
        name: ''
      }
    }
  },
  methods: {
    onSearch() {
      console.log('搜索数据', this.formInline)
    },
    onReset() {
      this.$refs.formRef.resetFields()
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
